package com.cmbchina.designpattern.application;

import com.cmbchina.designpattern.application.house.ThatchedHouse;

/**
 * 大野狼
 */
public class BigBadWolf {

    /**
     * 吹气的攻击力
     */
    private static final int BLOW_DAMAGE = 2000;

    /**
     * @param house 需要被摧毁的房屋
     * @return 反馈摧毁是否成功
     */
    public boolean blowHouse(ThatchedHouse house) {
        return house.breakingStrength() < BLOW_DAMAGE;
    }
}
